<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>[%$softtitle%]</title>
<link href="templates/css/baselist.css" rel="stylesheet" type="text/css" />
<link href="templates/css/all.css" rel="stylesheet" type="text/css" />
<link href="templates/css/clickmenu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript" src="js/control.js"></script>
<script type="text/javascript" src="../public/tinyMCE/jquery.tinymce.js"></script>
<script type="text/javascript" src="js/dialog.js"></script>
<script type="text/javascript" src="js/colorpicker.js"></script>
<script type="text/javascript" src="js/initedit.js"></script>
<script type="text/javascript">
	var resizewindow= null;
	window.onresize = function(){
		var h = $(window).height();
		if(resizewindow!=h){
			sizewindow();
			resizewindow=h;
		}
	}
	function sizewindow(){
		var h = $(window).height();
		if(document.getElementById("mainbodybottonauto")){
			$('.managebottonadd').css({height:h-77});
		}
	}
	var article_js_noselect_empty  = "[%$ST.article_js_noselect_empty%]";
	var article_doc_add_tid  = "[%$ST.article_doc_add_tid%]";
	var article_js_tsn_empty  = "[%$ST.article_js_tsn_empty%]";
	var article_js_title_empty  = "[%$ST.article_js_title_empty%]";
	var article_js_bprice_empty  = "[%$ST.article_js_bprice_empty%]";
	var article_js_oprice_empty  = "[%$ST.article_js_oprice_empty%]";
	var article_js_content_empty  = "[%$ST.article_js_content_empty%]";
	var article_js_link_empty  = "[%$ST.article_js_link_empty%]";
	var article_js_modelistime_empty  = "[%$ST.article_js_modelistime_empty%]";
	var article_js_widthhieht_empty  = "[%$ST.article_js_widthhieht_empty%]";
	var article_js_template_empty  = "[%$ST.article_js_template_empty%]";
	var article_js_filename_empty  = "[%$ST.article_js_filename_empty%]";
	var article_js_linkdid_empty  = "[%$ST.article_js_linkdid_empty%]";
	var article_js_doc_add_ok = "[%$ST.article_js_doc_add_ok%]";
	var article_js_doc_add_ok2 = "[%$ST.article_js_doc_add_ok2%]";
	var article_js_doc_add_no = "[%$ST.article_js_doc_add_no%]";
	var refalse = "[%$refalse%]";
	var imagestitle="[%$ST.filemanage_select_title%]";
	var addbottonname="[%$ST.selectfile_botton%]";
	var remimages="[%$ST.remimages_botton%]";
	var adminurl = "[%$adminurl%]";
	var iframename = "[%$iframename%]" ? "jerichotabiframe_0" : "[%$iframename%]";
	iframename = iframename=='' ? "jerichotabiframe_0" : iframename;
	$(document).ready(function(){$('#color').EasySiteColorSelect();var h=$(window).height();$('.managebottonadd').css({height:h-77});var options={beforeSubmit:formverify,success:saveResponse,resetForm:true};$('#docadd').submit(function(){$(this).ajaxSubmit(options);return false})})
	function formverify(formData,jqForm,options){for(var i=0;i<formData.length;i++){if(formData[i].name=="content"){formData[i].value=tinyMCE.get('content').getContent()}}var queryString=$.param(formData);var get=urlarray(queryString);if(get['tid']==0){windowsclass('#tabbottonul1','#tabcontentdiv1','tabbottonul','tabcontentdiv',1,6,'tabbottonulclick','tabbottonulover');document.docadd.tid.focus();alert(article_doc_add_tid+article_js_noselect_empty);return false}if(get['modelistsn']==1){if(get['tsn']==''){windowsclass('#tabbottonul1','#tabcontentdiv1','tabbottonul','tabcontentdiv',1,6,'tabbottonulclick','tabbottonulover');document.docadd.tsn.focus();alert(article_js_tsn_empty);return false}}if(get['title']==''){windowsclass('#tabbottonul1','#tabcontentdiv1','tabbottonul','tabcontentdiv',1,6,'tabbottonulclick','tabbottonulover');document.docadd.title.focus();alert(article_js_title_empty);return false}if(get['islink']==1){if(get['link'].match(/^http:\/\/[a-zA-Z.0-9-%&?=/_]+$/ig)==null){windowsclass('#tabbottonul1','#tabcontentdiv1','tabbottonul','tabcontentdiv',1,6,'tabbottonulclick','tabbottonulover');document.docadd.link.focus();alert(article_js_link_empty);return false}}else{if(get['content']==''&&get['modeliscontent']==1){windowsclass('#tabbottonul2','#tabcontentdiv2','tabbottonul','tabcontentdiv',2,6,'tabbottonulclick','tabbottonulover');alert(article_js_content_empty);return false}}if(get['modelisorder']==1){if(get['isorder']==1){if(get['bprice'].match(/^[0-9.]*$/ig)==null){windowsclass('#tabbottonul3','#tabcontentdiv3','tabbottonul','tabcontentdiv',3,6,'tabbottonulclick','tabbottonulover');document.docadd.bprice.focus();alert(article_js_bprice_empty);return false}}if(get['bprice']!=''){windowsclass('#tabbottonul3','#tabcontentdiv3','tabbottonul','tabcontentdiv',3,6,'tabbottonulclick','tabbottonulover');if(get['bprice'].match(/^[0-9.]*$/ig)==null){document.docadd.bprice.focus();alert(article_js_bprice_empty);return false}}if(get['oprice']!=''){if(get['oprice'].match(/^[0-9.]*$/ig)==null){windowsclass('#tabbottonul3','#tabcontentdiv3','tabbottonul','tabcontentdiv',3,6,'tabbottonulclick','tabbottonulover');document.docadd.oprice.focus();alert(article_js_oprice_empty);return false}}}if(get['modelistime']==1){if(get['other%5Bistime%5D']==1){if(get['other%5Bstartime%5D'].match(/^[1-9][0-9]{3}\-[0-9]{2}\-[0-9]{2}$/ig)==null||get['other%5Bendtime%5D'].match(/^[1-9][0-9]{3}\-[0-9]{2}\-[0-9]{2}$/ig)==null){windowsclass('#tabbottonul4','#tabcontentdiv4','tabbottonul','tabcontentdiv',4,6,'tabbottonulclick','tabbottonulover');alert(article_js_modelistime_empty);return false}}if(get['other%5Bstartime%5D']!=''||get['other%5Bendtime%5D']!=''){if(get['other%5Bstartime%5D'].match(/^[1-9][0-9]{3}\-[0-9]{2}\-[0-9]{2}$/ig)==null||get['other%5Bendtime%5D'].match(/^[1-9][0-9]{3}\-[0-9]{2}\-[0-9]{2}$/ig)==null){windowsclass('#tabbottonul4','#tabcontentdiv4','tabbottonul','tabcontentdiv',4,6,'tabbottonulclick','tabbottonulover');alert(article_js_modelistime_empty);return false}}if(get['other%5Bwidth%5D']!=''||get['other%5Bheight%5D']!=''){if(get['other%5Bwidth%5D'].match(/^[0-9]+$/ig)==null||get['other%5Bheight%5D'].match(/^[0-9]+$/ig)==null){windowsclass('#tabbottonul4','#tabcontentdiv4','tabbottonul','tabcontentdiv',4,6,'tabbottonulclick','tabbottonulover');alert(article_js_widthhieht_empty);return false}}}if(get['istemplates']==1){if(get['template'].match(/^[\w-]+$/ig)==null){windowsclass('#tabbottonul6','#tabcontentdiv6','tabbottonul','tabcontentdiv',6,6,'tabbottonulclick','tabbottonulover');document.docadd.template.focus();alert(article_js_template_empty);return false}}if(get['filename']!=''){if(get['filename'].match(/^[\w-]+$/ig)==null){windowsclass('#tabbottonul6','#tabcontentdiv6','tabbottonul','tabcontentdiv',6,6,'tabbottonulclick','tabbottonulover');document.docadd.filename.focus();alert(article_js_filename_empty);return false}}if(get['linkdid']!=''){if(get['linkdid'].match(/^[0-9,]+$/ig)==null){windowsclass('#tabbottonul6','#tabcontentdiv6','tabbottonul','tabcontentdiv',6,6,'tabbottonulclick','tabbottonulover');document.docadd.linkdid.focus();alert(article_js_linkdid_empty);return false}}parent.windowsdig('Loading','iframe:index.php?archive=management&action=load','400px','180px','iframe',false)}function saveResponse(options){parent.closeifram();if(options=='true'){if(parent.frames[iframename].document.getElementById("articleselectform")){parent.frames[iframename].refresh('articleselectform','articleselectall','articlecheck_all')}if(refalse!='1'){alert(article_js_doc_add_ok)}else{alert(article_js_doc_add_ok2)}}else{alert(article_js_doc_add_no+'Return message:'+options)}if(refalse!='1'){parent.onaletdoc()}else{var repicbotton='<li id="addsrc_pic1"><a title="'+addbottonname+'" onclick="javascript:parent.windowsdig(\''+imagestitle+'\',\'iframe:index.php?archive=filemanage&action=filemanage&listfunction=filelist&filetype=img&checkfrom=function&fileinputid=pic1&iframename=\'+self.frameElement.getAttribute(\'name\'),\'900px\',\'480px\',\'iframe\')" href="#body"><img src="templates/images/pic.png" width="100" height="100"></a></li>';var reinput='<input type="hidden" name="pic[]" id="pic1" size="40" maxlength="50" class="infoInput"/>';$('#addpiclist').empty().append(repicbotton);$('#picinputlist').empty().append(reinput);$('input:[name="picid"]').val(1);$('input:[name="picidhow"]').val(1)}}function fnupdate(linkdid){var inputvalue=$(":input[name=\"linkdid\"]").val();var newval=inputvalue+linkdid;$(":input[name=\"linkdid\"]").val(newval)}function updatekeywords(linkdid,inputname){var inputvalue=$(":input[name=\""+inputname+"\"]").val();var newval=inputvalue+linkdid;$(":input[name=\""+inputname+"\"]").val(newval)}
</script>
</head>

<body>
<div id="mainlistbotton">
	<ul id="tabbottonul">
		<li class="fisttablist"></li>
		<li class="tabbottonulclick" id="tabbottonul1" onmousedown="javascript:windowsclass('#tabbottonul1','#tabcontentdiv1','tabbottonul','tabcontentdiv',1,6,'tabbottonulclick','tabbottonulover');">[%$ST.article_doc_tab_title01%]</li>
		[%if $modelview.iscontent==1%]
		<li class="tabbottonulover" id="tabbottonul2" onmousedown="javascript:windowsclass('#tabbottonul2','#tabcontentdiv2','tabbottonul','tabcontentdiv',2,6,'tabbottonulclick','tabbottonulover');">[%$ST.article_doc_tab_title02%]</li>
		[%/if%]
		[%if $modelview.isorder==1%]
		<li class="tabbottonulover" id="tabbottonul3" onmousedown="javascript:windowsclass('#tabbottonul3','#tabcontentdiv3','tabbottonul','tabcontentdiv',3,6,'tabbottonulclick','tabbottonulover');">[%$ST.article_doc_tab_title03%]</li>
		[%/if%]
		[%if $modelview.istime==1%]
		<li class="tabbottonulover" id="tabbottonul4" onmousedown="javascript:windowsclass('#tabbottonul4','#tabcontentdiv4','tabbottonul','tabcontentdiv',4,6,'tabbottonulclick','tabbottonulover');">[%$ST.article_doc_tab_title04%]</li>
		[%/if%]
		[%if count($attrread)>0%]
		<li class="tabbottonulover" id="tabbottonul5" onmousedown="javascript:windowsclass('#tabbottonul5','#tabcontentdiv5','tabbottonul','tabcontentdiv',5,6,'tabbottonulclick','tabbottonulover');">[%$ST.article_doc_tab_title06%]</li>
		[%/if%]
		<li class="tabbottonulover" id="tabbottonul6" onmousedown="javascript:windowsclass('#tabbottonul6','#tabcontentdiv6','tabbottonul','tabcontentdiv',6,6,'tabbottonulclick','tabbottonulover');">[%$ST.article_doc_tab_title05%]</li>
	</ul>
</div>
<form name="docadd" id="docadd" method="post" action="index.php?archive=article&action=docsave">
	<input type="hidden" name="inputclass" value="add">
	<input type="hidden" name="tab" id="docaddtab" value="[%$tab%]">
	<input type="hidden" name="mid" id="mid" value="[%$mid%]">
	<input type="hidden" name="lng" id="lng" value="[%$lng%]">
	<input type="hidden" name="modelisorder" id="modelisorder" value="[%$modelview.isorder%]">
	<div id="mainbodybottonauto" class="managebottonadd">
		<div class="maindobycontent">
			<!--查看已选择的类型-->
			<div id="tabcontentdiv1" class="displaytrue">
				<div class="sugtitle">
					<span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.article_doc_add_typeinfotext%]</span></span>
				</div>
				<div class="sugtitle-line"></div>
				<div class="formdiv">
					<table border="0" width="100%">
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_tid%]</td>
							<td width="85%" class="trtitle02">
								<select size="1" name="tid" id="tid">
									<option selected="selected" value="0">[%$ST.article_doc_add_tid_option%]</option>
									[%forlist from=$typelist key=list%]
									<option [%$typelist[list].selected%] value="[%$typelist[list].tid%]">[%$typelist[list].level|treelist('&nbsp;&nbsp;&nbsp;')%]├─ [%$typelist[list].typename%]</option>
									[%/forlist%]
								</select>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_extid%]</td>
							<td width="85%" class="trtitle02">
								<select size="3" name="extid[]" id="extid" multiple="multiple">
									<optgroup label="[%$ST.article_doc_add_extid_option%]">
									[%forlist from=$typelist key=list%]
									<option value="[%$typelist[list].tid%]">[%$typelist[list].level|treelist('&nbsp;&nbsp;&nbsp;')%]├─ [%$typelist[list].typename%]</option>
									[%/forlist%]
									</optgroup>
								</select>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_sid%]</td>
							<td width="85%" class="trtitle02">
								<select size="1" name="sid" id="sid">
									<option selected="selected" value="0">[%$ST.article_doc_add_sid_option%]</option>
									[%forlist from=$subjectlistarray key=list%]
									<option value="[%$subjectlistarray[list].sid%]">[%$subjectlistarray[list].subjectname%]</option>
									[%/forlist%]
								</select>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_fgid%]</td>
							<td width="85%" class="trtitle02">
								<select size="1" name="fgid" id="fgid">
									<option selected="selected" value="0">[%$ST.article_doc_add_fgid_option%]</option>
									[%forlist from=$formarray key=list%]
									<option value="[%$formarray[list].fgid%]">[%$formarray[list].formgroupname%]</option>
									[%/forlist%]
								</select>
								<span class="cautiontitle" id="dirnameerr">[%$ST.article_doc_add_fgid_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_purview%]</td>
							<td width="85%" class="trtitle02">
								<select size="1" name="purview" id="purview">
									<option selected="selected" value="0">[%$ST.article_doc_add_purview_option%]</option>
									[%forlist from=$memberpuvlist key=list%]
									<option value="[%$memberpuvlist[list].mcid%]">[%$memberpuvlist[list].rankname%]</option>
									[%/forlist%]
								</select>
							</td>
						</tr>
					</table>
				</div>
				<div class="sugtitle">
					<span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.article_doc_add_titletext%]</span></span>
				</div>
				<div class="sugtitle-line"></div>
				<div class="formdiv">
					<table border="0" width="100%">
					[%if $modelview.istsn==1%]
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_tsn%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="tsn" size="25" maxlength="20" value="[%$tsn%]" id="tsn" class="infoInput"/>
								<span class="cautiontitle" id="dirnameerr">[%$ST.article_doc_add_tsn_mess%]</span>
							</td>
						</tr>
					[%/if%]
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_title%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="title" size="60" id="title" maxlength="180" class="infoInput"/>
								<input id="color" name="color" value="[%$defaultinput.input_color%]"/>
								<span class="cautiontitle">[%$ST.article_doc_add_title_mess%]</span>
							</td>
						</tr>
					[%if $modelview.islongtitle==1%]
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_longtitle%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="longtitle" size="60"id="longtitle"  maxlength="180" class="infoInput"/>
								<span class="cautiontitle">[%$ST.article_doc_add_longtitle_mess%]</span>
							</td>
						</tr>
					[%/if%]
					[%if $modelview.isauthor==1%]
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_author%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="author" size="20" maxlength="20" id="author" value="[%$defaultinput.input_author%]" class="infoInput"/>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_source%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="source" size="20" maxlength="30" id="source" value="[%$defaultinput.input_source%]" class="infoInput"/>
							</td>
						</tr>
					[%/if%]
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_addtime%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="addtime" size="20" maxlength="30" id="addtime" value="[%$nowtime|timeformat(3)%]" class="infoInput"/>
								<span class="cautiontitle">[%$ST.article_doc_add_addtime_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_click%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="click" size="5" maxlength="5" id="click" value="0" class="infoInput"/>
								<span class="cautiontitle">[%$ST.article_doc_add_click_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_islink%]</td>
							<td width="85%" class="trtitle02">
								<input type="radio" value="1" name="islink" onclick="ondisplay('islinkdiv','trstyle2 displaytrue')" /> [%$ST.open_botton_title%]&nbsp;
								<input type="radio" value="0" name="islink" onclick="ondisplay('islinkdiv','trstyle2 displaynone')"checked="checked"/> [%$ST.close_botton_title%]
								<span class="cautiontitle">[%$ST.article_doc_add_islink_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2 displaynone" id="islinkdiv">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_link%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="link" size="50" maxlength="230" class="infoInput"/>
								<span class="cautiontitle">[%$ST.article_doc_add_link_mess%]</span>
							</td>
						</tr>
						[%if $modelview.ishtml==1%]
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_ishtml%]</td>
							<td width="85%" class="trtitle02">
								<input type="radio" value="1" name="ishtml" checked="checked"/> [%$ST.article_doc_add_ishtml_1%]&nbsp;
								<input type="radio" value="0" name="ishtml"/> [%$ST.article_doc_add_ishtml_0%]
							</td>
						</tr>
						[%/if%]
						[%if count($doclabel)>0%]
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_recommend%]</td>
							<td width="85%" class="trtitle02" style="line-height: 200%">
							[%forlist from=$doclabel key=list%]
								<input type="checkbox" value="[%$doclabel[list].dlid%]" name="recommend[]"/> [%$doclabel[list].labelname%]&nbsp;
								[%div=>list=5%]<br>[%/div=>list%]
							[%/forlist%]
							</td>
						</tr>
						[%/if%]
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_pic%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="showpic" id="showpic" size="30" maxlength="50" class="infoInput"/>
								<a class="filecheck" onclick="javascript:parent.windowsdig('[%$ST.filemanage_select_title%]','iframe:index.php?archive=filemanage&action=filemanage&listfunction=filelist&filetype=img&checkfrom=input&fileinputid=showpic&iframename='+self.frameElement.getAttribute('name'),'900px','480px','iframe')" href="#body">[%$ST.selectfile_botton%]</a>
								<span class="cautiontitle">[%$ST.article_doc_add_pic_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_piclist%]</td>
							<td width="85%" class="trtitle02">
								<ul class="addpiclist" id="addpiclist">
									<li id="addsrc_pic1"><a title="[%$ST.selectfile_botton%]" onclick="javascript:parent.windowsdig('[%$ST.filemanage_select_title%]','iframe:index.php?archive=filemanage&action=filemanage&listfunction=filelist&filetype=img&checkfrom=function&fileinputid=pic1&iframename='+self.frameElement.getAttribute('name'),'900px','480px','iframe')" href="#body"><img src="templates/images/pic.png" width="100" height="100"></a></li>
								</ul>
								<span id="picinputlist">
									<input type="hidden" name="pic[]" id="pic1" size="40" maxlength="50" class="infoInput"/>
								</span>
								<!--计算图片序列ID-->
								<input type="hidden" name="picid" id="picid" value="1"/>
								<!--计算图片总数量-->
								<input type="hidden" name="picidhow" id="picidhow" value="1"/>
							</td>
						</tr>
					</table>
				</div>
			</div>
			[%#%]内容[%#%]
			[%if $modelview.iscontent==1%]
			<div id="tabcontentdiv2" class="displaynone">
				<div class="sugtitle">
					<span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.article_doc_add_contenttext%]</span></span>
				</div>
				<div class="sugtitle-line"></div>
				<div class="formdiv">
					<table border="0" width="100%">
						<tr><td><textarea name="content" id="content" class="smallInput"></textarea></td></tr>
					</table>
				</div>
			</div>
			[%/if%]
			[%#%]价格[%#%]
			[%if $modelview.isorder==1%]
			<div id="tabcontentdiv3" class="displaynone">
				<div class="sugtitle">
					<span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.article_doc_add_orderpricetext%]</span></span>
				</div>
				<div class="sugtitle-line"></div>
				<div class="formdiv">
					<table border="0" width="100%">
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_isorder%]</td>
							<td width="85%" class="trtitle02">
								<input type="radio" value="1" name="isorder" checked="checked"/> [%$ST.open_botton_title%]&nbsp;
								<input type="radio" value="0" name="isorder"/> [%$ST.close_botton_title%]
								<span class="cautiontitle">[%$ST.article_doc_add_isorder_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_oprice%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="oprice" size="15" value="0" maxlength="15" class="infoInput"/>
								<span class="cautiontitle" id="dirnameerr">[%$ST.article_doc_add_oprice_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_bprice%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="bprice" size="15" value="0" maxlength="15" class="infoInput"/>
								<span class="cautiontitle">[%$ST.article_doc_add_oprice_mess%]</span>
							</td>
						</tr>
					</table>
				</div>
			</div>
			[%/if%]
			[%if $modelview.istime==1%]
			<div id="tabcontentdiv4" class="displaynone">
			[%#%]时间限制[%#%]
				<div class="sugtitle">
					<span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.article_doc_add_timetext%]</span></span>
				</div>
				<div class="sugtitle-line"></div>
				<div class="formdiv">
					<table border="0" width="100%">
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_islike%]</td>
							<td width="85%" class="trtitle02">
								<input type="radio" value="1" name="other[istime]" checked="checked"/> [%$ST.open_botton_title%]&nbsp;
								<input type="radio" value="0" name="other[istime]"/> [%$ST.close_botton_title%]
								<span class="cautiontitle">[%$ST.article_doc_add_islike_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_filetype%]</td>
							<td width="85%" class="trtitle02">
								<input type="radio" value="1" name="other[filetype]" checked="checked"/> [%$ST.article_doc_add_filetype1%]&nbsp;
								<input type="radio" value="2" name="other[filetype]"/> [%$ST.article_doc_add_filetype2%]
								<input type="radio" value="3" name="other[filetype]"/> [%$ST.article_doc_add_filetype3%]
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_startime%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="other[startime]" size="20" maxlength="15" value="[%$startime%]" class="infoInput"/>
								<span class="cautiontitle" id="dirnameerr">[%$ST.article_doc_add_time_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_endtime%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="other[endtime]" size="20" maxlength="15" value="[%$endtime%]" class="infoInput"/>
								<span class="cautiontitle">[%$ST.article_doc_add_time_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_width%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="other[width]" size="10" maxlength="4" value="0" class="infoInput"/>
								<span class="cautiontitle">[%$ST.article_doc_add_widthheight_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_height%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="other[height]" size="10" maxlength="4" value="0" class="infoInput"/>
								<span class="cautiontitle">[%$ST.article_doc_add_widthheight_mess%]</span>
							</td>
						</tr>
					</table>
				</div>
			</div>
			[%/if%]
			[%if count($attrread)>0%]
			<div id="tabcontentdiv5" class="displaynone">
			[%#%]自定义表单[%#%]
				<div class="sugtitle">
					<span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.article_doc_add_customtext%]</span></span>
				</div>
				<div class="sugtitle-line"></div>
				<div class="formdiv">
					<table border="0" width="100%">
					[%forlist from=$attrread key=i%]
						<tr class="trstyle2">
							<td class="trtitle01" width="15%">[%$attrread[i].typename%]</td>
							<td class="trtitle02" width="85%">
							[%if $attrread[i].inputtype=='string'%]<input type="text" name="modelatt[[%$attrread[i].attrname%]]" size="[%$attrread[i].attrsize%]" maxlength="[%$attrread[i].attrlenther%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>[%/if%]
							[%if $attrread[i].inputtype=='int'%]<input type="text" name="modelatt[[%$attrread[i].attrname%]]" size="[%$attrread[i].attrsize%]" maxlength="[%$attrread[i].attrlenther%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>[%/if%]
							[%if $attrread[i].inputtype=='datetime'%]
								<input type="text" id="dataselect" name="modelatt[[%$attrread[i].attrname%]]" size="[%$attrread[i].attrsize%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>
							[%/if%]
							[%if $attrread[i].inputtype=='img'%]
								<input type="text" name="modelatt[[%$attrread[i].attrname%]]" id="[%$attrread[i].attrname%]" size="[%$attrread[i].attrsize%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>
								<a class="filecheck" onclick="javascript:parent.windowsdig('[%$ST.filemanage_select_title%]','iframe:index.php?archive=filemanage&action=filemanage&listfunction=filelist&filetype=img&checkfrom=input&fileinputid=[%$attrread[i].attrname%]&iframename='+self.frameElement.getAttribute('name'),'900px','480px','iframe')" href="#body">[%$ST.selectfile_botton%]</a>
							[%/if%]
							[%if $attrread[i].inputtype=='addon'%]
								<input type="text" name="modelatt[[%$attrread[i].attrname%]]" id="[%$attrread[i].attrname%]" size="[%$attrread[i].attrsize%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>
								<a class="filecheck" onclick="javascript:parent.windowsdig('[%$ST.filemanage_select_title%]','iframe:index.php?archive=filemanage&action=filemanage&listfunction=filelist&filetype=img&checkfrom=input&fileinputid=[%$attrread[i].attrname%]&iframename='+self.frameElement.getAttribute('name'),'900px','480px','iframe')" href="#body">[%$ST.selectfile_botton%]</a>
							[%/if%]
							[%if $attrread[i].inputtype=='text' || $attrread[i].inputtype=='htmltext'%]<textarea name="modelatt[[%$attrread[i].attrname%]]" cols="[%$attrread[i].attrsize%]" rows="[%$attrread[i].attrrow%]" class="infoInput">[%$attrread[i].attrvalue%]</textarea>[%/if%]
							[%if $attrread[i].inputtype=='select'%]
								<select size="1" name="modelatt[[%$attrread[i].attrname%]]">
								[%forlist from=$attrread[i].attrvalue key=ii%]
									<option [%if $attrread[i].attrvalue[ii].selected=='selected'%]selected="selected" [%/if%]value="[%$attrread[i].attrvalue[ii].name%]">[%$attrread[i].attrvalue[ii].name%]</option>
								[%/forlist%]
								</select>
							[%/if%]
							[%if $attrread[i].inputtype=='radio'%]
								[%forlist from=$attrread[i].attrvalue key=ii%]
								<input [%if $attrread[i].attrvalue[ii].selected=='selected'%]checked="checked" [%/if%]name="modelatt[[%$attrread[i].attrname%]]" type="radio" value="[%$attrread[i].attrvalue[ii].name%]" /> [%$attrread[i].attrvalue[ii].name%]
								[%/forlist%]
							[%/if%]
							[%if $attrread[i].inputtype=='checkbox'%]
								[%forlist from=$attrread[i].attrvalue key=ii%]
									<input [%if $attrread[i].attrvalue[ii].selected=='selected'%]checked="checked" [%/if%]name="[%$attrread[i].attrname%][]" type="checkbox" value="[%$attrread[i].attrvalue[ii].name%]" /> [%$attrread[i].attrvalue[ii].name%]
								[%/forlist%]
							[%/if%]
							[%if $attrread[i].typeremark!=''%]<span class="cautiontitle">[%$attrread[i].typeremark%]</span>[%/if%]
							</td>
						</tr>
					[%/forlist%]
					</table>
				</div>
			</div>
			[%/if%]
			<div id="tabcontentdiv6"  class="displaynone">
				<div class="sugtitle">
					<span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.article_doc_add_seotext%]</span></span>
				</div>
				<div class="sugtitle-line"></div>
				<div class="formdiv">
					<table border="0" width="100%">
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_tags%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="tags" size="50" maxlength="100" class="infoInput"/>
								<a class="filecheck" href="#body" onclick="javascript:parent.windowsdig('[%$ST.selectkeyword_botton%]','iframe:index.php?archive=seomanage&action=listtab&inputtext=tags&lng=[%$view.lng%]&listfunction=keywordlist&iframename='+self.frameElement.getAttribute('name'),'650px','380px','iframe');">[%$ST.selectkeyword_botton%]</a>
								<span class="cautiontitle">[%$ST.article_doc_add_tags_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_keywords%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="keywords" size="50" maxlength="80" class="infoInput"/>
								<a class="filecheck" href="#body" onclick="javascript:parent.windowsdig('[%$ST.selectkeyword_botton%]','iframe:index.php?archive=seomanage&action=listtab&inputtext=keywords&lng=[%$view.lng%]&listfunction=keywordlist&iframename='+self.frameElement.getAttribute('name'),'650px','380px','iframe');">[%$ST.selectkeyword_botton%]</a>
								<span class="cautiontitle">[%$ST.article_doc_add_keywords_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01"></td>
							<td width="85%" class="trtitle02">
								<select size="1" name="ktid" id="ktid" onchange="javascript:updatekeywords(this.value,'keywords')">
									<option selected="selected" value="0">[%$ST.article_doc_add_ktid_option%]</option>
									[%forlist from=$keyarray key=list%]
									<option value="[%$keyarray[list].keyworklist%]">[%$keyarray[list].keytypename%]([%$keyarray[list].keyworklist|cutstr(25)%])</option>
									[%/forlist%]
								</select>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_description%]</td>
							<td width="85%" class="trtitle02">
								<textarea name="description" id="description"  style="width:98%;height:50px;" class="smallInput"></textarea>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01"></td>
							<td width="85%" class="trtitle02">
								<select size="1" name="ktid" id="ktid" onchange="javascript:updatekeywords(this.value,'description')">
									<option selected="selected" value="">[%$ST.article_doc_add_ktid_option2%]</option>
									[%forlist from=$keyarray key=list%]
									<option value="[%$keyarray[list].description%]">[%$keyarray[list].keytypename%]([%$keyarray[list].description|cutstr(35)%])</option>
									[%/forlist%]
								</select>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_istemplates%]</td>
							<td width="85%" class="trtitle02">
								<input type="radio" value="1" name="istemplates" onclick="ondisplay('istemplatesdiv','trstyle2 displaytrue')"/> [%$ST.open_botton_title%]&nbsp;
								<input type="radio" value="0" name="istemplates" onclick="ondisplay('istemplatesdiv','trstyle2 displaynone')" checked="checked"/> [%$ST.close_botton_title%]
								<span class="cautiontitle">[%$ST.article_doc_add_istemplates_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2 displaynone" id="istemplatesdiv">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_template%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="template" id="templatename" size="20" maxlength="20" class="infoInput"/>
								<a class="filecheck" href="#body" onclick="javascript:parent.windowsdig('[%$ST.selecttempfile_botton%]','iframe:index.php?archive=templatemain&action=listtab&inputtext=templatename&listfunction=templatestab&lng=[%$lng%]&typeclass=article&fileclass=read&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),'650px','380px','iframe');">[%$ST.selecttempfile_botton%]</a>
								<span class="cautiontitle">[%$ST.article_doc_add_template_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_filename%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="filename" size="20" maxlength="20" class="infoInput"/>
								<span class="cautiontitle">[%$ST.article_doc_add_filename_mess%]</span>
							</td>
						</tr>
						<tr class="trstyle2">
							<td width="15%" class="trtitle01">[%$ST.article_doc_add_linkdid%]</td>
							<td width="85%" class="trtitle02">
								<input type="text" name="linkdid" id="linkdid" size="35" maxlength="50" class="infoInput"/>
								<a class="filecheck" href="#body" onclick="javascript:parent.windowsdig('[%$ST.article_doc_add_linkdid%]','iframe:index.php?archive=ordermain&action=searchdoc&inputtext=linkdid&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),'650px','380px','iframe');">[%$ST.selectlinkdid_botton%]</a>
								<span class="cautiontitle">[%$ST.article_doc_add_linkdid_mess%]</span>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div id="downbotton">
		<div id="subbotton">
			<table border="0" width="100%">
				<tr>
					<td id="right"><input type="submit" id="docaddsubmitbotton" name="Submit" value="[%$ST.botton_add%]" class="buttonface" /></td>
					<td id="left" class="padding-left5"><input type="button" name="cancel" onClick="javascript:parent.onaletdoc();" value="[%$ST.botton_add_reset%]" class="buttonface" /></td>
				</tr>
			</table>
		</div>
	</div>
	<input type="hidden" name="modelistime" id="modelistime" value="[%$modelview.istime%]">
	<input type="hidden" name="modelislongtitle" id="modelislongtitle" value="[%$modelview.islongtitle%]">
	<input type="hidden" name="modelistsn" id="modelistsn" value="[%$modelview.istsn%]">
	<input type="hidden" name="modelisauthor" id="modelisauthor" value="[%$modelview.isauthor%]">
	<input type="hidden" name="modeliscontent" id="modeliscontent" value="[%$modelview.iscontent%]">
</form>
</body>

</html>


